Alex Williamson [Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)]
[IA64] xenitp: correctly size vcpu_ctx array
vcpu_ctx[] array size should be MAX_VIRT_CPUS instead of 1.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 1 Oct 2007 15:57:50 +0000 (09:57 -0600)]
[IA64] Fix wrong insertion of TLB entry in region 0
On PV domain with metaphysical mode, emulation of itc.d in region 0
doesn't work well and inserts an wrong TC entry.
Because set_one_rr() doesn't set the machine region register.
i.e. metaphyisical_rr0 is used instead of guest's rr[0].
This bug causes Dom0/U crash when an application uses region 0.
Actually I met the crash when I was building open GFW (java uses
region 0).
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Mon, 1 Oct 2007 15:53:48 +0000 (09:53 -0600)]
[IA64] xenctx: fix rse arithmetic
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 1 Oct 2007 15:52:14 +0000 (09:52 -0600)]
[IA64] Replace mode_flags by mmu_mode
Replace mode_flags by mmu_mode and put it into arch_vmx structure.
Cleanup in vmx_phy_mode.c to prepare for half-physical mode (dt=0,it=1)
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Thu, 27 Sep 2007 22:29:43 +0000 (16:29 -0600)]
[IA64] Kexec: Implement elf_core_save_regs()
Implement elf_core_save_regs() by porting (un #ifdefing)
ia64_elf_core_copy_regs() from Linux.
This ommits the calls to ia64_get_user_rbs_end() and ia64_sync_user_rbs()
in do_copy_task_regs(). Supplying them would seem to involve a reasonably
involved ammount of porting. I'm really not sure that its neccessary.
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 22:26:34 +0000 (16:26 -0600)]
[IA64] Kexec: Zap VHPT in relocate_kernel
On XEN do_ia64_purge_tlb unpins the VHPT entry, so it seems
logical that relocate_kernel should do the same thing.
It seems to work, but is it correct?
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 22:24:02 +0000 (16:24 -0600)]
[IA64] Kexec: Fix ia64_do_tlb_purge so that it works with XEN
Fix ia64_do_tlb_purge, its broken in too many ways
1. Call SET_PER_CPU_DATA before making any calls to GET_THIS_PADDR
to ensure that per-cpu data is set up correctly.
2. Use the per_cpu variable to derive CURRENT_STACK_OFFSET rather
than reading it from a kernel register. See 1) for explanation
of why.
3. In the VHPT pruning code, don't use r25 as ia64_jump_to_sal,
which branches to ia64_do_tlb_purge expects r25 to be preserved.
There seems no reason not to use r2 as per the other purges
done in ia64_do_tlb_purge. Furthermore use r16 and r18 instead
of r20 and r24 for consistency reasons.
4. Move __va_ul(vcpu_vhpt_maddr(v)) comment outside of
#if VHPT_ENABLED as it also applies to code further down that
is outside the #if
Cc: Tristan Gingold <tgingold@free.fr>,
Cc: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>,
Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com>,
Cc: Kazuhiro Suzuki <kaz@jp.fujitsu.com>,
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:35:02 +0000 (15:35 -0600)]
[IA64] Kexec: partial port of CPU_HOTPLUG
* Enable CONFIG_CPU_HOTPLUG
* Add #ifndef CONFIG_XEN as appropriate around portions that are not
needed for kexec - it is used to take down cpus on SMP systems
before kexecing.
* Port various xen-specific bits as neccessary
- This has mainly been done in the existing kexec-related files,
as kexex is currently the only user of this code. If a full
port of CPU_HOTPLUG was done then this code would either disapear
or be relocated elsewhere.
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:12:58 +0000 (15:12 -0600)]
[IA64] Kexec: Add kexec_disable_iosapic
Ported from Linux, this shuts down iosapic before preforming kexec.
This resolves a problem whereby the serial port on an HP RX2620
(which uses IOSAPIC) was not able to accept input. It probably
resolves a bunch of other as yet unseen problems too.
Thanks to Takebe-san for working out the solution to this puzzle.
Cc: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:10:42 +0000 (15:10 -0600)]
[IA64] Kdump: Save dom0_mm_pgd_mfn in vmcore on ia64
On Xen dom0_mm_pgd_mfn needs to be saved in the vmcore in
order to allow the crash utility to navigate the vmcore file.
Cc: Itsuro ODA <oda@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:08:13 +0000 (15:08 -0600)]
[IA64] kexec for xen
Basic port of kexec to xen
Signed-Off-By: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 18:22:16 +0000 (12:22 -0600)]
merge with xen-unstable.hg (staging)
Keir Fraser [Thu, 27 Sep 2007 17:08:11 +0000 (18:08 +0100)]
xend: Fix name uniqueness check (revert 15168:
a717cb2fac90).
Changeset 15168:
a717cb2fac90 altered check_name() in XendDomainInfo so
that it compares domain IDs instead of UUIDs. This breaks a number of
things
- You can no longer use 'xm new' to define a persistent config file for
a running guest. This breaks the key OS provisioning scenario where
you boot a kenrel+initrd for the installer, and at the same time
define a permanent config with pygrub.
- It lets you define multiple inactive guests with different UUIDs, but
the same name because all inactive guests have a domid of None. So
you can now end up with multiple guests with same name, which is
contrary to the goal implied by the patch which was name uniqueness.
It is unclear from the original commit logs just what scenario it was
trying to protect against, but the original checking of uniqueness
based on UUID was correct & is what was used in previous releases XenD.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Thu, 27 Sep 2007 16:44:03 +0000 (17:44 +0100)]
xend: fix server/netif.py so that it respects type=None.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Thu, 27 Sep 2007 15:50:52 +0000 (16:50 +0100)]
x86: If e820 map overflows, leak memory in a safe manner.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 27 Sep 2007 15:36:23 +0000 (16:36 +0100)]
ioemu: Fixes for BSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Alex Williamson [Thu, 27 Sep 2007 15:16:23 +0000 (09:16 -0600)]
[IA64] Consolidate DELIVER_PSR_CLR and DELIVER_PSR_SET definition.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Thu, 27 Sep 2007 15:08:26 +0000 (09:08 -0600)]
[IA64] Make viosapic SMP-safe adding lock/unlock similar to x86 vioapic
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Thu, 27 Sep 2007 15:03:43 +0000 (09:03 -0600)]
[IA64] make vacpi SMP-safe by adding lock similar to x86 pmtimer
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Thu, 27 Sep 2007 15:01:42 +0000 (09:01 -0600)]
[IA64] Merge vmx_dispatch_itlb_miss and vmx_dispatch_dtlb_miss
They were identical.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Thu, 27 Sep 2007 15:00:06 +0000 (09:00 -0600)]
[IA64] asm-offsets.s must depend on $(HDRS)
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Thu, 27 Sep 2007 14:22:29 +0000 (15:22 +0100)]
xend: Fix dummy security_policy_dir.
Changeset 15951:
ad339d88639d split policy_dir_prefix into
security_dir_prefix and policy_dir_prefix in acm code. I think this
needs to be reflected in the dummy module as well (otherwise we blowup
when bootloader.py tries to reference security.security_dir_prefix).
Fixed in below patch.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Thu, 27 Sep 2007 14:13:54 +0000 (15:13 +0100)]
libaio: Fix for *BSD
- Remove unused linux specific header
- Include <sys/time.h> needed for struct timespec
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Alex Williamson [Wed, 26 Sep 2007 19:22:17 +0000 (13:22 -0600)]
[IA64] Use same RID fro rr0 and rr4 in metaphysical mode.
Renames metaphysical_rr0 to metaphysical_rid_dt
Renames metaphysical_rr4 to metaphysical_rid_d
Add comments in optvfault.S
cleanup and update vmx_phy_mode.[ch]
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Wed, 26 Sep 2007 18:43:41 +0000 (12:43 -0600)]
[IA64] clean up xenitp build warnings
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Wed, 26 Sep 2007 16:11:07 +0000 (17:11 +0100)]
xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 15:50:28 +0000 (16:50 +0100)]
hvm: Fix task switch update of TR state.
Also remove unneeded duplicate paging_update_cr3().
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 13:39:56 +0000 (14:39 +0100)]
[xend,xenapi] Fix handling of scheduler params
When creating domains that specify scheduler parameters with XenAPI,
the specified parameters are not used when starting the domain. This
patch collapses cpu_weight and cpu_cap in XendConfig into the
vcpus_params dictionary. The patch has been tested using xm and
XenAPI on config with and without scheduler parameters.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Keir Fraser [Wed, 26 Sep 2007 13:14:16 +0000 (14:14 +0100)]
x86: force DMI table to not be in E820 RAM region
In order for Dom0 to be able to map the DMI table, it must not be in
E820 RAM; since some BIOS versions apparently fail to set the type
correctly for the page(s) containing this table, adjust it before
starting to consume memory.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 08:19:12 +0000 (09:19 +0100)]
ioemu: security fixes for not-built or not-default-configured subsystems.
Patches originally proposed by S. Caglar Onur and cleaned up for
xen-unstable by Robert Buchholz <rbu@gentoo.org>.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 08:15:34 +0000 (09:15 +0100)]
vt-d: Fix crash on x86/32.
On 32-bit xen, dom0 crashes when using VT-d to assign devices. It is
caused by setting m2p in clear_mmio_p2m_entry(), because
machine_to_phys_map[] entry for mmio address is not mapped.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Keir Fraser [Wed, 26 Sep 2007 08:14:33 +0000 (09:14 +0100)]
hvm: Improve tcgbios code for finding ACPI RSDP.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Wed, 26 Sep 2007 08:11:46 +0000 (09:11 +0100)]
xenapi: add xen_xspolicy.h to libxen includes file
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
Keir Fraser [Wed, 26 Sep 2007 08:10:41 +0000 (09:10 +0100)]
firmware: fix romimage generation for *bsd
- portability fix in Makefile: mkhex is not bash specific
- GNU od separates column with one blank, BSD od uses eight blanks.
Change sed to deal with this.
- Add a fourth sed to fix a build error on NetBSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Tue, 25 Sep 2007 21:28:17 +0000 (22:28 +0100)]
hvm: eflags[1] must remain set across task switch.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 25 Sep 2007 14:35:17 +0000 (15:35 +0100)]
xend: Fix VIF MAC address being lost across localhost migration.
VIF details in /vm/<uuid> directory in xenstore get deleted by old
domain dying.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 25 Sep 2007 09:40:38 +0000 (10:40 +0100)]
Fix xend start after xsm:acm bootloader changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 25 Sep 2007 09:21:07 +0000 (10:21 +0100)]
Fix tools dependency-check scripts for *BSD.
zlib and crypto libs are part of the base system in *BSD.
So no need to check for them on *BSD. This conveniently avoids
executing a non-portable usage of ldconfig.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Tue, 25 Sep 2007 09:12:49 +0000 (10:12 +0100)]
minios: Remove unnecessary padding and unused sections from x86/64
linker script.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 25 Sep 2007 08:34:36 +0000 (09:34 +0100)]
Fix security vulnerability CVE-2007-4993.
Protect pygrub from possible malicious content in guest grub
config file. This fixes CVE-2007-4993. Original patch from
Jeremy Katz, I updated to close 2 remaining issues pointed out
by Christian and Keir, and to use setattr(self, ...).
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Keir Fraser [Tue, 25 Sep 2007 08:30:00 +0000 (09:30 +0100)]
xend memory ballooning: do not bother if guest will not fit in
physical memory constraints.
If users require domain memory size larger than a physical memory
size, we do not need waiting for ballooning, and should cause
xm create command error right away.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Keir Fraser [Mon, 24 Sep 2007 20:52:10 +0000 (21:52 +0100)]
[Xend/ACM] Automatic loading of policy after xend has started.
On systems where the grub bootloader is not available or active the
to-be-activated policy is written a simple textfile. Once xend has
started the contents can be read. Using 'xm setpolicy' the policy can
be activated and the Domain-0 label set (using 'xm addlabel').
I fixed some bugs in the grub bootloader handler on the way and
removed some dead functions.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Mon, 24 Sep 2007 20:41:46 +0000 (21:41 +0100)]
x86: Auto-probe the serial port baud rate if 'com1' or 'com2' is
specified as a Xen console target. Avoids need for 'com1=' or 'com2='
command-line option in some cases.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Mon, 24 Sep 2007 20:21:02 +0000 (14:21 -0600)]
[IA64] update .hgignore for xenitp
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Alex Williamson [Mon, 24 Sep 2007 20:17:04 +0000 (14:17 -0600)]
[IA64] Add xenitp tool
Xenitp is a low-level debugger for ia64
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Mon, 24 Sep 2007 15:03:11 +0000 (16:03 +0100)]
Another msised netbsd file.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 24 Sep 2007 14:41:20 +0000 (15:41 +0100)]
Missed files in previous changeset.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Mon, 24 Sep 2007 14:38:52 +0000 (15:38 +0100)]
xenstat/xenstore: NetBSD fixes.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Mon, 24 Sep 2007 14:29:09 +0000 (15:29 +0100)]
Fix xentrace build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Mon, 24 Sep 2007 13:04:36 +0000 (14:04 +0100)]
Merge
Keir Fraser [Mon, 24 Sep 2007 12:45:57 +0000 (13:45 +0100)]
libxc: NetBSD-specific pieces.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Tim Deegan [Mon, 24 Sep 2007 12:44:51 +0000 (13:44 +0100)]
Merge
Tim Deegan [Mon, 24 Sep 2007 12:44:29 +0000 (13:44 +0100)]
[HVM] Don't count "missed ticks" on one-shot timers.
It's not clear what it would mean, and it leads to division by zero.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Keir Fraser [Mon, 24 Sep 2007 12:43:25 +0000 (13:43 +0100)]
Xen tracing cleanups and fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Sun, 23 Sep 2007 11:56:11 +0000 (12:56 +0100)]
Fix the build after AMD IOMMU patches.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Sun, 23 Sep 2007 11:55:50 +0000 (12:55 +0100)]
vt-d: disable for old chipset steppings with incompatible page table format.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Keir Fraser [Sun, 23 Sep 2007 11:45:07 +0000 (12:45 +0100)]
XSM:FLASK support for domain management under Xen-API
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
Keir Fraser [Sun, 23 Sep 2007 11:18:36 +0000 (12:18 +0100)]
Fix libfsimage build on NetBSD.
Fixes a number of these errors:
cc1: warnings being treated as errors
fsys_fat.c: In function 'fat_dir':
fsys_fat.c:304: warning: array subscript has type 'char'
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
These ugly casts are needed according to the ISO C spec.
Acked-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Sat, 22 Sep 2007 08:39:18 +0000 (09:39 +0100)]
vmxassist: Emulate HLT.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Fri, 21 Sep 2007 18:49:31 +0000 (12:49 -0600)]
[IA64] vmx_vcpu_tak: Fix bugs
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Fri, 21 Sep 2007 17:03:54 +0000 (11:03 -0600)]
[IA64] debug_op hypercall and debug points
Add debug_op hypercall.
Add many debug points.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Fri, 21 Sep 2007 16:23:35 +0000 (17:23 +0100)]
libxc: improve error message when starting a domain and mmap() fails
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Fri, 21 Sep 2007 16:22:15 +0000 (17:22 +0100)]
network-bridge: default to eth0 if no default gateway.
From: Luke Szymanski <Lukasz.Szymanski@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Fri, 21 Sep 2007 16:15:47 +0000 (17:15 +0100)]
Add AMD IOMMU support into hypervisor
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Keir Fraser [Fri, 21 Sep 2007 16:10:00 +0000 (17:10 +0100)]
Fix build after tracing changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
George Dunlap [Fri, 21 Sep 2007 14:33:37 +0000 (15:33 +0100)]
[xen][hvm][tracing] Refine hvm tracing
This patch does two things:
* Allows hvm traces to take advantage of the variable-size traces
* Adds some hvm functionality
This includes tracing actions like clts and lmsw, values of {p,mm}io reads
and writes, and making different trace records for hvm domains running in
64-bit mode if the trace record includes a virtual address.
George Dunlap [Fri, 21 Sep 2007 14:26:07 +0000 (15:26 +0100)]
[xen][tracing] Introduce variable-size trace records
This patch introduces variable-size trace records. Each record consists of
a 32-bit "header", an optional cycle count, and up to seven more 32-bit words.
The header is packed with the following information:
bits 0-27: The trace event.
bits 28-30: The number of 32-bit "extra" words in the records
bit 31: Does the trace include a 64-bit tsc?
This patch standardizes behavior wrt 32 and 64-bit hypervisors and dom0s.
Note that this patch requires a new version of the xentrace daemon running in
dom0. The new daemon, instead of pre-pending the cpu to every record as it
writes it, inserts a "cpu change" record to the trace file that record the
cpu and the number of records it's about to write.
Signed-off-by: George Dunlap <gdunlap@xensource.com>
Keir Fraser [Fri, 21 Sep 2007 15:52:17 +0000 (16:52 +0100)]
vmx: Fix VMCS state pretty printing.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 20 Sep 2007 15:02:22 +0000 (16:02 +0100)]
Fix tools/console to build on NetBSD.
- include headers needed to build on NetBSD
- Remove unused pty.h
- Initialize spty terminal before actually using it
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Thu, 20 Sep 2007 14:59:51 +0000 (15:59 +0100)]
vtd: Fix init/destroy domain hooks.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 20 Sep 2007 14:52:29 +0000 (15:52 +0100)]
libelf: OpenBSD and NetBSD portability.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Thu, 20 Sep 2007 14:41:22 +0000 (15:41 +0100)]
vtd: cleanups to iommu code.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 20 Sep 2007 13:15:45 +0000 (14:15 +0100)]
cpufreq: Support cpufreq updates on AMD hardware by dom0 kernel.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 20 Sep 2007 12:30:14 +0000 (13:30 +0100)]
[XM-TEST] Fixes a parameter to the external tools used
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Tim Deegan [Thu, 20 Sep 2007 09:55:24 +0000 (10:55 +0100)]
Merge
Tim Deegan [Thu, 20 Sep 2007 09:54:52 +0000 (10:54 +0100)]
[HVM] iommu p2m ops: check guest is translated, and maintain m2p consistency
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Keir Fraser [Thu, 20 Sep 2007 09:39:10 +0000 (10:39 +0100)]
Fix typo in blktap script.
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
Keir Fraser [Thu, 20 Sep 2007 09:31:49 +0000 (10:31 +0100)]
vmx: Fix 64-bit asm stub for VM entry/exit.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Thu, 20 Sep 2007 09:13:25 +0000 (10:13 +0100)]
Merge
Keir Fraser [Thu, 20 Sep 2007 08:57:10 +0000 (09:57 +0100)]
domctl and p2m changes for PCI passthru.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Guy Zana <guy@neocleus.com>
Keir Fraser [Thu, 20 Sep 2007 08:42:01 +0000 (09:42 +0100)]
VTD: Small fix to iommu initialisation.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Guy Zana <guy@neocleus.com>
Keir Fraser [Thu, 20 Sep 2007 08:40:49 +0000 (09:40 +0100)]
[VTD] dynamically determines whether to link with libpci or not in QEMU.
This patch to ioemu/Makefile.target dynamically decides whether to
link with libpci or not base on the existence of /usr/include/pci
directory.
If /usr/include/pci exists, PCI passthrough is enabled. Otherwise, it
is disabled.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Tim Deegan [Wed, 19 Sep 2007 16:44:23 +0000 (17:44 +0100)]
[TOOLS] Make xc_domain_{save, restore} understand compat guests
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Wed, 19 Sep 2007 14:42:56 +0000 (15:42 +0100)]
libxc portability fixes for NetBSD.
- use MAP_ANON, that is what both (BSD-)Unix and Linux have
- change last_error handling to use pthreads
- round mlock() parameters to page alignment
- cleanup: No need to include <xen/sys/privcmd.h>
a second time in xg_private.h
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 19 Sep 2007 14:20:56 +0000 (15:20 +0100)]
ia64: Fix target for Linux image install.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kfraser@localhost.localdomain [Wed, 19 Sep 2007 14:18:23 +0000 (15:18 +0100)]
vmx: Print VMCS state in a more helpful format.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 19 Sep 2007 13:25:44 +0000 (14:25 +0100)]
hvm: Always keep canonical copy of RIP/RSP/RFLAGS in
guest_cpu_user_regs(). Reduces complexity at little or no performance
cost (except on really old Intel P4 hardware where VMREAD/VMWRITE are
silly expensive).
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Wed, 19 Sep 2007 11:12:49 +0000 (12:12 +0100)]
Using "make install" causes a distro specific script
(/sbin/installkernel) to be called since linux-2.6.18-xen.hg
211:
c1f5d027adf7.
Unfortunately on some distros this script is broken for non-root
use. Our needs are pretty simple anyway so just open code the
installation of the kernel.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
George Dunlap [Wed, 19 Sep 2007 10:58:04 +0000 (11:58 +0100)]
[shadow] Be smarter about what we check to avoid unnecessary brute-force searches
The old code checked only if the page was still a pagetable before
doing a brute-force search, rather than checking if it was still
shadowed as the type indicated. This meant that if a page was shadowed
as two different types, it was guaranteed to do a full brute-force search
even if all references could be found by up-pointers.
This checks the proper thing so that it will only do a brute-force if
necessary.
It also re-orders the unshadows so that higher levels are done first. In
many cases, lower-level shadows will be destroyed in the process of
higher-level shadows being destroyed, again saving brute-force searches.
George Dunlap [Wed, 19 Sep 2007 10:42:05 +0000 (11:42 +0100)]
[SHADOW] Use fast-unshadow for early_unshadow heuristic.
kfraser@localhost.localdomain [Wed, 19 Sep 2007 09:24:24 +0000 (10:24 +0100)]
hvm: hvm_{load,store}_cpu_guest_regs() does not touch segment
selectors. We have separate accessors for that now. It is now an
invariant that guest_cpu_user_regs()->{cs,ds,es,fs,gs,ss} are invalid
for an HVM guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 19 Sep 2007 08:24:20 +0000 (09:24 +0100)]
PCI passthru various Xen changes.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Guy Zana <guy@neocleus.com>
kfraser@localhost.localdomain [Wed, 19 Sep 2007 08:12:06 +0000 (09:12 +0100)]
PCI passthru: VT-d I/O hooks.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Guy Zana <guy@neocleus.com>
kfraser@localhost.localdomain [Tue, 18 Sep 2007 15:09:19 +0000 (16:09 +0100)]
IRQ injection changes for HVM PCI passthru.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Guy Zana <guy@neocleus.com>
kfraser@localhost.localdomain [Tue, 18 Sep 2007 14:11:39 +0000 (15:11 +0100)]
Log an error when enabling shadow mode fails for live relocation.
Signed-off-by: Doug Merrill <dpmerrill@novell.com>
kfraser@localhost.localdomain [Tue, 18 Sep 2007 14:09:57 +0000 (15:09 +0100)]
Evaluate XEN_GUEST_HANDLE_64 twice.
This fixes a build error for PV guests (OpenBSD, NetBSD) where the use
of XEN_GUEST_HANDLE_64(uint8_t) leads to a build error because uint8_t
is a #define and not a typedef.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
kfraser@localhost.localdomain [Tue, 18 Sep 2007 14:08:11 +0000 (15:08 +0100)]
xm: Extend width of ID in 'xm list --label' to 5 digits
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Tue, 18 Sep 2007 14:06:20 +0000 (15:06 +0100)]
[VTPM] VTPM manager -- Fix parameter check
If vtpm_managed is started with the same vtpm instance, the following
error occurs.
++++++++++++
Loading NVM.
Sending LoadNVM command
INFO[VTSP]: Unbinding 256 bytes of data.
ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER.
ERROR in envelope_decrypt at securestorage.c:156
code:TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to envelope decrypt data
.ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code:
TPM_BAD_PARAMETER.
ERROR[VTPM]: Failed to load NVM
.INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.
Reading LoadNVM header
++++++++++++
Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
kfraser@localhost.localdomain [Tue, 18 Sep 2007 14:05:38 +0000 (15:05 +0100)]
[VTPM] Fix vTPM function in HVM domain
In Windows on HVM domain, GetPubkey function and Seal function become
an error.
Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
Steven Hand [Tue, 18 Sep 2007 13:59:25 +0000 (14:59 +0100)]
Intercept TS on SVM.
Signed-off-by: Steven Hand <steven@xensource.com>